<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$site_title}</title>
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/blendui/2.0.0/boost.min.css" />
  <link rel="stylesheet" type="text/css" href="{$resource_basic}/css/webapp.css" />
  <script type="text/javascript" src="{$resource_basic}/js/jquery.min.js"></script>
  <script type="text/javascript" src="http://apps.bdimg.com/libs/blendui/2.0.0/boost.min.js"></script>
  <script type="text/javascript">
    window.boost = $.noConflict(true);
    </script>
  <style>
      .blend-panel{background-color: #fff;}
      .blend-panel-header{color:#03ab9e;}
      a:active,a:hover,a:visited,a:focus,a{text-decoration: none;}
      .blend-card-content-view{
          max-height: 85px;
      }
      
  </style>
</head>

<body>
    <header data-blend-widget="header" class="blend-header header_title_bg">
        <span class="blend-header-left">
<!--            <a class="blend-header-item  blend-button" href="{:U('M/Index/index')}"><img src="{$resource_basic}/img/btn_back.png" style="height:28px;"/></a>-->
        </span>
        <span class="blend-header-title">
            <a class="blend-header-item">{$sub_title}</a>
        </span>
        <span class="blend-header-right">
        </span>
    </header>

  
    <if condition="$state neq 3">
        <!--最新检测结果列表-->
        <figure class="blend-picture blend-button-full">
            <a href="{:U('M/Founding/publish_new',array('from'=>2,'isnew'=>1))}"> <img src="{$resource_basic}img/create_fouding_btn.png" /></a>
        </figure>
        <br/>
    </if>
<empty name="fundings">
    
    <div class="blend-panel">
        
        <div class="blend-panel-body">
            亲，还没有项目，我们先去<a href="{:U('M/Founding/publish_new',array('from'=>2,'isnew'=>1))}">发起</a>呗!
            
            
        </div>
    </div>
    
    <else/>
    <if condition="$state neq 3">
    <div class="blend-panel">
        <div class="blend-panel-header blend-panel-left">
            ▎众测中的检测项目
        </div>
    </div>
    </if>
    <volist name="fundings" id="vo">
        <a  href="{:U('M/Founding/detail_new',array('fdid'=>$vo['id'],'from_channel'=>1))}">
            <div class="blend-card blend-card-no-icon" style="height:100px; position: relative;">
                <div class="blend-card-img-view" style="width:20%; float: left;">
                    <img src="{$site_url}{$vo.thumb}">
                </div>
                <div class="blend-card-content-view" style="width:75%;float: right; ">
                    <div class="blend-card-title">
                       {$vo.pjname}
                    </div>
                    <div class="blend-card-sub-title">生产日期/批号:{$vo.batch}</div>
                    <div class="blend-card-sub-title">检测日期:{$vo.btime|date="Y.m.d",###}</div>
                    <div class="blend-card-sub-title">抽样地:{$vo.location}</div>
                </div>

                <div class="blend-card-img-view" style=" float: right;  position: absolute; right: 10px;">
                    <if condition="$vo.state eq 2">
                        <img src="{$resource_basic}img/testing_mark.png">
                        <elseif condition="$vo.state eq 3"/>
                        <img src="{$resource_basic}{$vo.show_mark_icon}">
                        <else/>
                        <img src="{$resource_basic}img/fouding_mark.png">
                        <div style="  float: right;position: relative;top: -74%;font-size: 1.3rem;right: 26%;color:#03ab9e; text-align: center; width: 30px;">{$vo.rate}%</div>
                    </if>
                    
                    
                </div>
            </div>
        </a>
    </volist>
</empty>
    
    <!--最新检测结果end-->
    

<!--底部菜单end-->
<!--微信分享的基本信息-->
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
//分享

wx.config({
    debug: false,
    appId: '{$signPackage["appId"]}',
    timestamp: {$signPackage["timestamp"]},
    nonceStr: '{$signPackage["nonceStr"]}',
    signature: '{$signPackage["signature"]}',
    jsApiList: [
      // 所有要调用的 API 都要加到这个列表中
      'onMenuShareTimeline',
      'onMenuShareAppMessage'
    ]
});
wx.ready(function () {
// 在这里调用 API
    wx.onMenuShareTimeline({
        title: '{$sharedata.share_all.title}', // 分享标题
        desc: '{$sharedata.share_all.desc}', // 分享描述
        link: '{$sharedata.share_all.link}', // 分享链接
        imgUrl: '{$sharedata.share_all.thumb}', // 分享图标
        success: function () { 
            // 用户确认分享后执行的回调函数，生成红包

        },
        cancel: function () { 
            // 用户取消分享后执行的回调函数
        }
    });
    
    wx.onMenuShareAppMessage({
        title: '{$sharedata.share.title}', // 分享标题
        desc: '{$sharedata.share.desc}', // 分享描述
        link: '{$sharedata.share.link}', // 分享链接
        imgUrl: '{$sharedata.share.thumb}', // 分享图标
        type: '', // 分享类型,music、video或link，不填默认为link
        dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
        success: function () { 
            // 用户确认分享后执行的回调函数

        },
        cancel: function () { 
            // 用户取消分享后执行的回调函数
        }
    });

});

</script>
<!--微信分享的基本信息end-->
<script>
$(function(){
//    open_loading();
});
// 加载的loading...
 document.onreadystatechange = subSomething;//当页面加载状态改变的时候执行这个方法. 
    function subSomething() 
    { 
        if(document.readyState === "complete") //当页面加载状态 
        {
//            close_loading();

        }
    }
 
    function open_loading()
    {
        var loading = boost.blend.loading();
        loading.show();
    }
    
    function close_loading()
    {
        $('.blend-loading').hide();
    }
</script>
<include file="Index/foot_analyze"/>
<?php require_once 'cs.php';echo '<img src="'._cnzzTrackPageView(1256622573).'" width="0" height="0"/>';?>
</body>
</html>